package ch.netcetera.planningpoker.client;

import ch.netcetera.planningpoker.client.admin.create.CreateGamePresenter;
import ch.netcetera.planningpoker.client.admin.create.CreateGameView;

import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
import com.gwtplatform.mvp.client.gin.DefaultModule;

public class PokerModule extends AbstractPresenterModule {

    @Override
    protected void configure() {
        install(new DefaultModule(PokerPlaceManager.class));
        // bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
        // bind(TokenFormatter.class).to(ParameterTokenFormatter.class).in(
        // Singleton.class);
        // bind(RootPresenter.class).asEagerSingleton();
        // bind(PlaceManager.class).to(PokerPlaceManager.class)
        // .in(Singleton.class);
        // bind(GoogleAnalytics.class).to(GoogleAnalyticsImpl.class).in(
        // Singleton.class);

        // Presenters
        bindPresenter(CreateGamePresenter.class,
                CreateGamePresenter.IView.class, CreateGameView.class,
                CreateGamePresenter.IProxy.class);

    }
}
